Skip to content

Conversation

@cichaczem
Copy link
Owner

No description provided.

},

requestStudentEnrollment(student) {
var that = this;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to do that. _receivedStudentEnrollmentSuccess should be accessible.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not accessible :(

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I don't like this piece of code too.
I just don't want the arrow functions all inside the then(...) callback

@lesniakania
Copy link
Collaborator

Apart from the thing we already talked about (defining methods in methods) everything looks fine.
You could move all behaviours related to toggling to the Enroll component, but I think it's not a big deal, it should be just a move and it should work, so probably not worth spending time.

As it comes to redirect, we with @cichaczem agreed on passing callbacks to creators - see here and here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants